package behavior.visitor;

/**
 * 药物基类
 * @author thinkpad
 *
 */
public abstract class Medicine {
	protected String name;
	protected double price;

	public Medicine(String name, double price) {
		this.name = name;
		this.price = price;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public abstract void accept(Visitor visitor);
}
